package game.shared;

public class Constants 
{

	//Game name
	public static final String GAME_NAME = "My Game ^_^";
	//Game size
	public static final int SCREEN_WIDTH = 480;
	public static final int SCREEN_HEIGHT = 320;
	public static final int SCREEN_SCALE = 1;
	
	public static final int SCREEN_MENU = 0;
	public static final int SCREEN_PLAYING = 1;
	public static final int SCREEN_SELECT_LEVEL = 2;
	
	//Game texture
	public static final String MENU_BACKGROUND_TEXTURE = "res/img_background/android_menu.jpg";
	public static final String MENU_TEXTURE = "res/img/menu.png";
	//Game music
	public static final String MUSIC_MP3_THINKINGOFYOU = "res/music_mp3/thinkingofyou.mp3";
	public static final String MUSIC_MIDI_MAX = "res/music_midi/max.midi";
	
	public static final int SPRITE_STAND_RIGHT 		= 1;
	public static final int SPRITE_STAND_LEFT 		= 2;
	public static final int SPRITE_RUN_RIGHT 		= 3;
	public static final int SPRITE_RUN_LEFT 		= 4;
	public static final int SPRITE_ATTACK_RIGHT 	= 5;
	public static final int SPRITE_ATTACK_LEFT 		= 6;
	
	public static final int HOME_CLOSEDORE			= 1;
	public static final int HOME_ATTACKED			= 2;
	public static final int HOME_OPENDORE			= 3;
	//Shot
	public static final int ROCKET_AMMUNITION 		= 0;
	public static final int ROCKET_WHITE 			= 1;
	
	//Game id buffer sprites.
	public static final int FUNCTION_CODE_NONE 			= -1;
	public static final int FUNCTION_CODE_SNOW 			= 1;
	public static final int FUNCTION_CODE_METEORITE 	= 2;
	public static final int FUNCTION_CODE_CLOUDFIRE		= 3;
	public static final int FUNCTION_CODE_MENU 			= 4;
	public static final int FUNCTION_CODE_NEWGAME 		= 5;
	public static final int FUNCTION_CODE_CONTINUE_GAME	= 6;
//	public static final int FUNCTION_CODE_GUIDE 		= 7;
	public static final int FUNCTION_CODE_OPTION 		= 8;
	public static final int FUNCTION_CODE_CREDIT 		= 9;
	public static final int FUNCTION_CODE_EXIT 			= 10;
	public static final int FUNCTION_CODE_RESUME 		= 11;
	public static final int FUNCTION_CODE_SHOP 			= 12;
	public static final int FUNCTION_CODE_BUY 			= 13;
	public static final int FUNCTION_CODE_SELL 			= 14;
	public static final int FUNCTION_CODE_TG_TAB 		= 15;
	
	//items
	public static final int FUNCTION_CODE_TAB_1 			= 401;
	public static final int FUNCTION_CODE_TAB_2 			= 402;
	public static final int FUNCTION_CODE_TAB_3 			= 403;
	public static final int FUNCTION_CODE_TAB_4 			= 404;
	public static final int FUNCTION_CODE_HP_1 				= 405;
	public static final int FUNCTION_CODE_HP_2 				= 406;
	public static final int FUNCTION_CODE_HP_3 				= 407;
	public static final int FUNCTION_CODE_HP_4 				= 408;
	public static final int FUNCTION_CODE_MANA_1			= 409;
	public static final int FUNCTION_CODE_MANA_2			= 410;
	public static final int FUNCTION_CODE_MANA_3			= 411;
	public static final int FUNCTION_CODE_MANA_4			= 412;
	public static final int FUNCTION_CODE_GEM_RED_1 			= 413;
	public static final int FUNCTION_CODE_GEM_RED_2 			= 414;
	public static final int FUNCTION_CODE_GEM_RED_3 			= 415;
	public static final int FUNCTION_CODE_GEM_RED_4 			= 416;
	public static final int FUNCTION_CODE_GEM_BLUE_1			= 417;
	public static final int FUNCTION_CODE_GEM_BLUE_2			= 418;
	public static final int FUNCTION_CODE_GEM_BLUE_3			= 419;
	public static final int FUNCTION_CODE_GEM_BLUE_4			= 420;
	
	//select level
	public static final int FUNCTION_CODE_LOCK_1				= 501;
	public static final int FUNCTION_CODE_LOCK_2				= 502;
	public static final int FUNCTION_CODE_LOCK_3				= 503;
	public static final int FUNCTION_CODE_LOCK_4				= 504;
	public static final int FUNCTION_CODE_LOCK_5				= 505;
	
	//test
	public static final int FUNCTION_CODE_GAMELOST 		= 15;
	
	public static final int ABILITY_SNOWDOWN 		= 1;
	public static final int ABILITY_GOBACK 			= 2;
	public static final int ABILITY_LIGHTNING 		= 3;	
	public static final int ABILITY_LOSTHP    		= 4;
//	public static final int ABILITY_SHOT 			= 5;
	
	//Game dir particle
	public static final String PARTICLE_CLOUD_FIRE_1 = "res/particles/particle_cloud_fire/cloud_fire";
	public static final String PARTICLE_CLOUD_FIRE_2 = "res/particles/particle_cloud_fire";
	public static final String PARTICLE_WATER_BUND_1 = "";
	public static final String PARTICLE_WATER_BUND_2 = "";
	public static final String PARTICLE_SPRING_WATER_P1 = "res/particles/particle_water_bund/water_bund_4";
	public static final String PARTICLE_SPRING_WATER_P2 = "res/particles/particle_water_bund/"; 

	//Game background shape
	public static final String BG_LEVEL_1 = "res/img_background/bg_level_1.png";
	public static final String BG_LEVEL_2 = "res/img_background/bg_level_2.png";
	public static final String BG_LEVEL_3 = "res/img_background/bg_level_3.png";
	public static final String BG_LEVEL_4 = "res/img_background/bg_level_4.jpg";
			
	//Game parameter.
	public static int LEVEL_DEFAULT				= 1; //now_level in class level.
	public static int GOLD_DEFAULT				= 100;
	public static int GOLD 						= 100;
	public static int HP_DEFAULT				= 300;
	public static int HP 						= 300;//Thay đổi khi monster bắn trúng army
	public static int HP_MAX_DEFAULT			= 300;//Sử dụng để khởi tạo
	public static int HP_MAX 					= 300;//Bằng HP_MAX + hp tạo ra từ items.
	public static int MANA_DEFAULT 				= 100;
	public static int MANA 						= 100;
	public static int MANA_MAX_DEFAULT			= 100;
	public static int MANA_MAX					= 100;
	public static int DAM_DEFAULT 				= 5;
	public static int DAM 						= 5;
	public static int SPEED_LIGHTING_DEFAULT	= 15;
	public static int SPEED_LIGHTING			= 15;
	public static float SPEED_MONSTER 			= 0.5f;
	public static int MONSTER_NUMBER			= 0;
	public static int MONSTER_NUMBER_MAX		= 5;
	
	public static int DISTANCE_SLOT_BUNKER		= 48; //Khoảng cách giữa 2 slot trong rương đồ.
	public static int DISTANCE_SLOT_X_0_LEFT	= 49; //Vị trí giữa slot x đầu tiên của my box
	public static int DISTANCE_SLOT_X_0			= 289;  //Vị trí giữa slot x dau tien của box sell
	public static int DISTANCE_SLOT_Y_0			= 185;	//Vị trí slot y dau tien của box sell
	public static int NUMBER_SLOT_LEFT_COL		= 4;
	public static int NUMBER_SLOT_LEFT_ROW		= 4;
	
	public static int LEVEL_LIMIT_BREAK_1	= 1;//Mức độ của tuyệt chiêu thứ nhất.
	public static int LEVEL_LIMIT_BREAK_2	= 1;
	public static int LEVEL_LIMIT_BREAK_3	= 1;
	public static int LEVEL_LIMIT_BREAK_4	= 1;
	public static int LEVEL_LIMIT_BREAK_5	= 1;
	
	public static int ID_SPRITE 		= -1; //Dùng để đánh id cho sprite (army, monster, weapon).
	public static int ID_ITEMS 			= -1; //Dùng để đánh id cho items trong rương đồ.
	public static int ID_ITEMS_CHOOSE	= -1; //Chon item co id = id choose;
	
	
	private static int _RETURN_CODE 	= -1;
	private static int _RETURN_VALUE 	= -1;
	
	public static float xx 				= -1;
	
	
	
	public static int get_RETURN_CODE() {
		int re = _RETURN_CODE;
		_RETURN_CODE = Constants.FUNCTION_CODE_NONE;
		return re;
	}
	public static int get_RETURN_VALUE() {
		int re = _RETURN_VALUE;
		_RETURN_VALUE = -1;
		return re;
	}

	public static void set_RETURN_CODE(int _RETURN_CODE) {
		Constants._RETURN_CODE = _RETURN_CODE;
	}
	public static void set_RETURN_VALUE(int _RETURN_VALUE) {
		Constants._RETURN_VALUE = _RETURN_VALUE;
	}
}
